package com.wx.finance.biz.dto.vo;


import lombok.Data;

import java.util.List;
import java.util.Set;

/**
 * 科目核算配置
 *
 */
@Data
public class SubjectCalculateConfigVo {
    private Boolean enableNumberCalculateConfig;
    private Boolean extendParentNumberCalculateConfigFlag;
    private NumberCalculateConfig numberCalculateConfig;

    private Boolean enableAssistCalculateConfigs;
    private Boolean extendParentAssistCalculateConfigsFlag;
    private List<AssistCalculateConfig> assistCalculateConfigs;

    private Boolean enableForeignCurrencyConfig;
    private Boolean extendParentForeignCurrencyConfigFlag;
    private ForeignCurrencyConfig foreignCurrencyConfig;

    /**
     * 数量核算配置
     */
    @Data
    public static class NumberCalculateConfig {
        private String unitOfMeasurement;
    }

    /**
     * 辅助核算配置
     */
    @Data
    public static class AssistCalculateConfig {
        private Long assistCalculateId;

        private Boolean requiredFlag;
    }

    /**
     * 外币核算配置
     */
    @Data
    public static class ForeignCurrencyConfig {
        private Boolean endOfYearCurrencyRevaluationFlag;

        private Set<Long> currencyConfigIds;

        private Set<Long> parentSubjectCurrencyConfigIds;
    }
}